<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>401</title>
</head>
<body>
<h1>权限不够</h1>
<div sec:authorize="isAuthenticated()">
    <p>已有登录用户</p>
    <p>登錄用戶：<span sec:authentication="name"></span></p>
    <p>用戶角色：<span sec:authentication="principal.authorities"></span></p>
</div>
<div sec:authorize="isAnonymous()">
    <p>未有用户登录</p>
</div>
<p>拒绝访问</p>
</body>
</html>